package com.chinaunicom.create.factory.abstractfactory;

import com.chinaunicom.create.factory.Pizza;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/18 22:12
 * Description: 抽象工厂模式
 */
public class Client {

    public static void main(String[] args) {
        AAbstractFactory factory = new BJFactory();

        Pizza pizza = factory.createPizza();
        pizza.prepare();
        pizza.make();
        pizza.finish();


        Plant plant = factory.createPlant();
        plant.water();
        plant.clean();
    }
}
